package ai.zixing.powermock.mockskip.repository;

import ai.zixing.powermock.mockskip.domain.User;

/**
 * @author zixing
 */
public interface UserRepository {

    /**
     * 新增用户
     *
     * @param user user
     * @return user
     */
    User insert(User user);

    /**
     * 用户名已经是否存在
     *
     * @param userName 用户名
     * @return 存在则返回 true
     */
    boolean isUserNameAlreadyExists(String userName);
}
